package com.lz;

import org.apache.zookeeper.server.auth.DigestAuthenticationProvider;

import java.security.NoSuchAlgorithmException;

public class J2Se {
    public static void main(String[] args) throws NoSuchAlgorithmException {
        String s = DigestAuthenticationProvider.generateDigest("user1:123456a");
        System.out.println(s);
    }
}
